﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations;
using EntityFrameworkCore.Model;
using Microsoft.AspNetCore.Mvc;
using FrameworkCore.Dependency.AutoMapper;

namespace CucumberJwt.Application.Authorization.Audit.Dto
{
    //[ModelMetadataType(typeof(AuditLog))]


    [AutoMap(typeof(AuditLog))]
    public class AuditDto
    {

        public string Id { get; set; }

        public Guid? UserId { get; set; }

        public string ServiceName { get; set; }


        public string MethodName { get; set; }


        public string Parameters { get; set; }

        public DateTime ExecutionTime { get; set; }

        public long ExecutionDuration { get; set; }

        public string ClientIPAddress { get; set; }

        public string ClientName { get; set; }

        public string BrowserInfo { get; set; }

        public Exception Exception { get; set; }
    }
}
